package cn.growthgate.fgo.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 从者声优
 * </p>
 *
 * @author GrowthGate
 * @since 2019-06-08
 */
@TableName("t_data_servant_cv")
public class ServantCv extends Model<ServantCv> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 从者id
     */
    private Long servantId;

    /**
     * 声优id
     */
    private Long cvId;

    /**
     * 备注
     */
    private String remark;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getServantId() {
        return servantId;
    }

    public void setServantId(Long servantId) {
        this.servantId = servantId;
    }
    public Long getCvId() {
        return cvId;
    }

    public void setCvId(Long cvId) {
        this.cvId = cvId;
    }
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ServantCv{" +
        "id=" + id +
        ", servantId=" + servantId +
        ", cvId=" + cvId +
        ", remark=" + remark +
        "}";
    }
}
